package cc.wsyw126.java.jvm.testFinally;

/**
 * Created by junpeng.yang on 17/3/20.
 */
public class exit {
    public static void main(String[] args) {
        try {
            System.out.println("how's the weather today?");
            System.exit(0); //注释掉 finally将执行
            return;
        } catch (Exception e) {
            System.out.println("i don't know");
            return;
        } finally {
            System.out.println("weather is fine");
        }
    }
}
